<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function index(){
//        $u_id=session('u_id');
//        if(!empty($u_id)){
//            $this->display('index/userLogin');
//        }else{
        $libraryInfo=D('Library')->libraryInfo();
        $this->assign('_libraryInfo',$libraryInfo);
        $this->display();
//        }
    }
    /**
     * 用户登录退出
     */
    public function userTui(){
        $u_id=session('u_id',null);
        if(empty($u_id)){
            $libraryInfo=D('Library')->libraryInfo();
            $this->assign('_libraryInfo',$libraryInfo);
            $this->display('index/index');
        }else{
            $this->display('index/userLogin');
        }
    }
    /**
     * 馆主简历跳转
    **/
    public function resumeSkip(){
        $this->display('index/jianli');
    }
}